package com.fp.m7.dao;

import java.util.List;

import com.fp.m7.model.EntityBase;

public interface BaseDao<T extends EntityBase> {

    T getById(Long id);

    List<T> listAll();

    T persist(T object);

    T merge(T object);

    T refresh(T object);

    void remove(T object);
    
    void flush();

}
